package objects;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.Serializable;
import java.util.List;

import org.apache.http.client.CookieStore;

/*
 * Batch Settings Object, holds a set of variables that controls each 
 * monitor thread. One should be loaded from the settings files for each.
 * 
 * To create a new one of these that can be loaded, take a look at the
 * Editor.java file.
 * 
 * Stores information for connections to:
 * - IRC
 * - RSS (When implemented)
 * - Website
 * 
 */




/**
 * @author Administrator
 *
 */
public class BatchSettings implements Serializable {
	
	public static int CONF_VERSION = 1;
	
	// Label
	public String _Label;
	
	/*
	 * IRC Variables
	 * 
	 * The secondary auth string is for things like automated invite bots
	 * to be used after the nickserv has been authenticated with.
	 */
	private String _IRCServer;
	private int _IRCPort;
	private String _OwnerName;
	private static String _BotSuffix = " | Sentinel";
	private String _SecondaryAuth;
	private String _NickServPW;
	private String _AnnounceChannel;
	
	/*
	 *  Website Variables.
	 *  
	 *  Be aware that, although there is a field for password here
	 *  it is never actually saved to file due to its transient property.
	 *  And due to this, it is advised to read into the editor since the
	 *  password is only used to generate the login cookie to be saved.
	 */
	private String _LOGINURL;
	private String _TORRENTPAGEURL;
	private String _Username;
	private transient String Password;
	private CookieStore _LoginCookies;
	
	
	/*
	 * RSS Variables
	 * 
	 */
	
	/**
	 * Array holding the source for the release fields
	 * 		Holds fields in this format:
	 * 		- namefield
	 * 		- downloadlink
	 * 		
	 */
	private String[] _SRCARGS;
	private String _RSSURL;
		
	
	
	
	public BatchSettings(String fName){

	}
	
	
}
